package test.clone;

public class App implements Cloneable {

  private String name;

  private CP cp;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name=name;
  }

  public CP getCp() {
    return cp;
  }

  public void setCp(CP cp) {
    this.cp=cp;
  }

  @Override
  protected Object clone() {
    App o=null;
    try {
      o=(App)super.clone();
      o.cp=(CP)cp.clone();
    } catch(CloneNotSupportedException e) {
      e.printStackTrace();
    }
    return o;
  }
}
